public static interface SetRepositoryPolicyRequest.Builder extends EcrPublicRequest.Builder, SdkPojo, CopyableBuilder<SetRepositoryPolicyRequest.Builder,SetRepositoryPolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
SetRepositoryPolicyRequest.Builder |
force(Boolean force)
If the policy that you want to set on a repository policy would prevent you from setting another policy in
the future, you must force the SetRepositoryPolicy operation.
|
SetRepositoryPolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
SetRepositoryPolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
SetRepositoryPolicyRequest.Builder |
policyText(String policyText)
The JSON repository policy text to apply to the repository.
|
SetRepositoryPolicyRequest.Builder |
registryId(String registryId)
The Amazon Web Services account ID that's associated with the registry that contains the repository.
|
SetRepositoryPolicyRequest.Builder |
repositoryName(String repositoryName)
The name of the repository to receive the policy.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildSetRepositoryPolicyRequest.Builder registryId(String registryId)
The Amazon Web Services account ID that's associated with the registry that contains the repository. If you do not specify a registry, the default public registry is assumed.
registryId - The Amazon Web Services account ID that's associated with the registry that contains the repository.
If you do not specify a registry, the default public registry is assumed.SetRepositoryPolicyRequest.Builder repositoryName(String repositoryName)
The name of the repository to receive the policy.
repositoryName - The name of the repository to receive the policy.SetRepositoryPolicyRequest.Builder policyText(String policyText)
The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
policyText - The JSON repository policy text to apply to the repository. For more information, see Amazon
ECR Repository Policies in the Amazon Elastic Container Registry User Guide.SetRepositoryPolicyRequest.Builder force(Boolean force)
If the policy that you want to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This prevents accidental repository lockouts.
force - If the policy that you want to set on a repository policy would prevent you from setting another
policy in the future, you must force the SetRepositoryPolicy operation. This prevents
accidental repository lockouts.SetRepositoryPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderSetRepositoryPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.