

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Daftar dasbor Lensa Penyimpanan Amazon S3
<a name="storage_lens_list_dashboard"></a>

 

# Menggunakan konsol S3
<a name="storage_lens_console_listing"></a>

**Untuk membuat daftar dasbor Lensa Penyimpanan S3**

1. Masuk ke Konsol Manajemen AWS dan buka konsol Amazon S3 di. [https://console.aws.amazon.com/s3/](https://console.aws.amazon.com/s3/)

1. Di panel navigasi kiri, navigasikan ke **Storage Lens**.

1. Pilih **Dasbor**. Anda sekarang dapat melihat dasbor di. Akun AWS

## Menggunakan AWS CLI
<a name="S3ListStorageLensConfigurationsCLI"></a>

**Example**  
Contoh perintah berikut mencantumkan dasbor S3 Storage Lens di dasbor Anda. Akun AWS Untuk menggunakan contoh ini, ganti `user input placeholders` dengan informasi Anda sendiri.  

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

**Example**  
Contoh berikut mencantumkan konfigurasi S3 Storage Lens tanpa token berikutnya. Untuk menggunakan contoh ini, ganti `user input placeholders` dengan informasi Anda sendiri.  

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

## Menggunakan AWS SDK for Java
<a name="S3ListStorageLensConfigurationsJava"></a>

**Example — Daftar konfigurasi dasbor Lensa Penyimpanan S3**  
Contoh berikut menunjukkan kepada Anda cara membuat daftar konfigurasi Lensa Penyimpanan S3 di SDK for Java. Untuk menggunakan contoh ini, ganti `user input placeholders` dengan informasi Anda sendiri.” untuk setiap contoh deskripsi.  

```
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();
        }
    }
}
```