

# Amazon S3 Storage Lens 대시보드 나열
<a name="storage_lens_list_dashboard"></a>

 

# S3 콘솔 사용
<a name="storage_lens_console_listing"></a>

**S3 Storage Lens 대시보드를 나열하려면**

1. AWS Management Console에 로그인한 후 [https://console.aws.amazon.com/s3/](https://console.aws.amazon.com/s3/)에서 S3 콘솔을 엽니다.

1. 왼쪽 탐색 창에서 **Storage Lens**로 이동합니다.

1. **대시보드**를 선택합니다. 이제 AWS 계정에서 대시보드를 볼 수 있습니다.

## AWS CLI 사용
<a name="S3ListStorageLensConfigurationsCLI"></a>

**Example**  
다음 예제 명령은 AWS 계정에 있는 S3 Storage Lens 대시보드를 나열합니다. 이러한 예시를 사용하려면 `user input placeholders`를 실제 정보로 대체하십시오.  

```
aws s3control list-storage-lens-configurations --account-id=222222222222 --region=us-east-1 --next-token=abcdefghij1234
```

**Example**  
아래 예제에서는 다음 토큰이 없는 S3 Storage Lens 구성을 나열합니다. 이러한 예제를 사용하려면 `user input placeholders`를 실제 정보로 대체하세요.  

```
aws s3control list-storage-lens-configurations --account-id=222222222222 --region=us-east-1
```

## Java용 AWS SDK 사용
<a name="S3ListStorageLensConfigurationsJava"></a>

**Example – S3 Storage Lens 대시보드 구성 나열**  
다음 예제에서는 SDK for Java에 S3 Storage Lens 구성을 나열하는 방법을 보여줍니다. 이 예제를 사용하려면 `user input placeholders`를 사용자의 정보로 대체합니다." 각 예제 설명에  

```
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.ListStorageLensConfigurationEntry;
import com.amazonaws.services.s3control.model.ListStorageLensConfigurationsRequest;

import java.util.List;

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

public class ListDashboard {

    public static void main(String[] args) {
        String sourceAccountId = "111122223333";
        String nextToken = "nextToken";

        try {
            AWSS3Control s3ControlClient = AWSS3ControlClient.builder()
                    .withCredentials(new ProfileCredentialsProvider())
                    .withRegion(US_WEST_2)
                    .build();

            final List<ListStorageLensConfigurationEntry> configurations =
                    s3ControlClient.listStorageLensConfigurations(new ListStorageLensConfigurationsRequest()
                            .withAccountId(sourceAccountId)
                            .withNextToken(nextToken)
                    ).getStorageLensConfigurationList();

            System.out.println(configurations.toString());
        } 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();
        }
    }
}
```