

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# Ansehen von Konfigurationsdetails von Amazon-S3-Storage-Lens-Dashboards
<a name="storage_lens_viewing"></a>

Sie können ein Amazon S3 Storage Lens-Dashboard über die Amazon S3 S3-Konsole und das SDK for Java aufrufen. AWS CLI

## Verwenden Sie den AWS CLI
<a name="S3ListStorageLensConfigurationsCLI"></a>

**Example**  
Im folgenden Beispiel wird eine S3-Storage-Lens-Konfiguration abgerufen, sodass Sie die Konfigurationsdetails ansehen können. Wenn Sie diese Beispiele verwenden möchten, ersetzen Sie die `{{user input placeholders}}` durch Ihre Informationen.  

```
aws s3control get-storage-lens-configuration --account-id={{222222222222}} --config-id={{your-configuration-id}} --region={{us-east-1}}
```

## Verwenden des AWS SDK for Java
<a name="S3GetStorageLensConfigurationJava"></a>

**Example – Abrufen und Anzeigen einer S3-Storage-Lens-Konfiguration**  
Das folgende Beispiel zeigt Ihnen, wie Sie eine S3-Storage-Lens-Konfiguration im SDK für Java abrufen, sodass Sie die Konfigurationsdetails ansehen können. Wenn Sie dieses Beispiel verwenden möchten, ersetzen Sie die `{{user input placeholders}}` (Platzhalter für Benutzereingaben) durch Ihre Informationen.  

```
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.GetStorageLensConfigurationRequest;
import com.amazonaws.services.s3control.model.GetStorageLensConfigurationResult;
import com.amazonaws.services.s3control.model.StorageLensConfiguration;

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

public class GetDashboard {

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

            final StorageLensConfiguration configuration =
                    s3ControlClient.getStorageLensConfiguration(new GetStorageLensConfigurationRequest()
                            .withAccountId(sourceAccountId)
                            .withConfigId(configurationId)
                    ).getStorageLensConfiguration();

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