Amazon S3 Storage Lens 대시보드 삭제

Amazon S3 Storage Lens 대시보드 삭제

기본 대시보드는 삭제할 수 없어요. 하지만 비활성화할 수는 있어요. 직접 만든 대시보드를 삭제하기 전에 다음을 고려하세요.

  • 대시보드를 삭제하는 대신 비활성화해서 나중에 다시 활성화할 수 있게 할 수도 있어요. 자세한 내용은 S3 콘솔 사용을 참고하세요.
  • 대시보드를 삭제하면 대시보드와 연결된 모든 구성 설정이 삭제돼요.
  • 대시보드를 삭제하면 모든 과거 지표 데이터를 사용할 수 없게 돼요. 이 과거 데이터는 여전히 15개월 동안 유지돼요. 이 데이터에 다시 액세스하려면 삭제된 대시보드와 같은 이름으로 같은 홈 리전에서 대시보드를 만들어요.

출처: Delete an Amazon S3 Storage Lens dashboard

본문

Amazon S3 콘솔에서 Amazon S3 Storage Lens 대시보드를 삭제할 수 있어요. 하지만 대시보드를 삭제하면 앞으로 지표를 생성하지 않아요.

Amazon S3 Storage Lens 대시보드 삭제

  1. AWS Management Console에 로그인하고 Amazon S3 콘솔(https://console.aws.amazon.com/s3/)을 엽니다.
  2. 왼쪽 탐색 창에서 Storage Lens, 대시보드(Dashboards) 를 선택합니다.
  3. 대시보드(Dashboards) 목록에서 삭제할 대시보드를 선택한 다음 삭제(Delete) 를 선택합니다.
  4. 대시보드 삭제(Delete dashboards) 페이지에서 텍스트 필드에 대시보드 이름을 입력해 대시보드를 삭제하려는 것을 확인합니다. 그런 다음 확인(Confirm) 을 선택합니다.

예제

다음 예제는 S3 Storage Lens 구성을 삭제해요. 이 예제를 사용하려면 사용자 입력 자리 표시자를 자신의 정보로 교체하세요.

aws s3control delete-storage-lens-configuration --account-id= 222222222222 --region= us-east-1 --config-id= your-configuration-id

예제: Amazon S3 Storage Lens 대시보드 구성 삭제 – 다음 예제는 SDK for Java에서 S3 Storage Lens 구성을 삭제하는 방법을 보여줘요.

package aws.example.s3control;

import com.amazonaws.AmazonServiceException;
import com.amazonaws.SdkClientException;
import com.amazonaws.auth.profile.ProfileCredentialsProvider;
import com.amazonaws.services.s3control.AWSS3Control;
import com.amazonaws.services.s3control.AWSS3ControlClient;
import com.amazonaws.services.s3control.model.DeleteStorageLensConfigurationRequest;

import static com.amazonaws.regions.Regions. US_WEST_2 ;

public class DeleteDashboard {
    public static void main(String[] args) {
        String configurationId = " ConfigurationId ";
        String sourceAccountId = " 111122223333 ";
        try {
            AWSS3Control s3ControlClient = AWSS3ControlClient.builder()
                    .withCredentials(new ProfileCredentialsProvider())
                    .withRegion( US_WEST_2 )
                    .build();

            s3ControlClient.deleteStorageLensConfiguration(new DeleteStorageLensConfigurationRequest()
                    .withAccountId(sourceAccountId)
                    .withConfigId(configurationId)
            );
        } catch (AmazonServiceException e) {
            // The call was transmitted successfully, but Amazon S3 couldn't process
            // it and returned an error response.
            e.printStackTrace();
        } catch (SdkClientException e) {
            // Amazon S3 couldn't be contacted for a response, or the client
            // couldn't parse the response from Amazon S3.
            e.printStackTrace();
        }
    }
}

더 알아보기