Interface RepositoryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RepositoryProps.Jsii$Proxy
Repository repository = Repository.Builder.create(this, "TestRepository")
.repositoryName("test-agent-runtime")
.build();
AgentRuntimeArtifact agentRuntimeArtifact = AgentRuntimeArtifact.fromEcrRepository(repository, "v1.0.0");
// Explicitly using public network (this is the default)
Runtime runtime = Runtime.Builder.create(this, "MyAgentRuntime")
.runtimeName("myAgent")
.agentRuntimeArtifact(agentRuntimeArtifact)
.networkConfiguration(RuntimeNetworkConfiguration.usingPublicNetwork())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRepositoryPropsstatic final classAn implementation forRepositoryProps -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryProps.Builderbuilder()default BooleanDeprecated.default BooleanIf true, deleting the repository force deletes the contents of the repository.default RepositoryEncryptionThe kind of server-side encryption to apply to this repository.default IKeyRefExternal KMS key to use for repository encryption.default BooleanEnable the scan on push when creating the repository.default TagMutabilityThe tag mutability setting for the repository.default List<ImageTagMutabilityExclusionFilter> The image tag mutability exclusion filters for the repository.default StringThe AWS account ID associated with the registry that contains the repository.default List<LifecycleRule> Life cycle rules to apply to this registry.default RemovalPolicyDetermine what happens to the repository when the resource/stack is deleted.default StringName for this repository.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoDeleteImages
Deprecated.UseemptyOnDeleteinstead.(deprecated) Whether all images should be automatically deleted when the repository is removed from the stack or when the stack is deleted.Requires the
removalPolicyto be set toRemovalPolicy.DESTROY.Default: false
-
getEmptyOnDelete
If true, deleting the repository force deletes the contents of the repository.If false, the repository must be empty before attempting to delete it.
Default: false
-
getEncryption
The kind of server-side encryption to apply to this repository.If you choose KMS, you can specify a KMS key via
encryptionKey. If encryptionKey is not specified, an AWS managed KMS key is used.Default: - `KMS` if `encryptionKey` is specified, or `AES256` otherwise.
-
getEncryptionKey
External KMS key to use for repository encryption.The 'encryption' property must be either not specified or set to "KMS". An error will be emitted if encryption is set to "AES256".
Default: - If encryption is set to `KMS` and this property is undefined, an AWS managed KMS key is used.
-
getImageScanOnPush
Enable the scan on push when creating the repository.Default: false
-
getImageTagMutability
The tag mutability setting for the repository.If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten.
Default: TagMutability.MUTABLE
-
getImageTagMutabilityExclusionFilters
@Stability(Stable) @Nullable default List<ImageTagMutabilityExclusionFilter> getImageTagMutabilityExclusionFilters()The image tag mutability exclusion filters for the repository.These filters specify which image tags can override the repository's default image tag mutability setting.
Default: undefined - AWS ECR default is no exclusion filters
- See Also:
-
getLifecycleRegistryId
The AWS account ID associated with the registry that contains the repository.Default: The default registry is assumed.
- See Also:
-
getLifecycleRules
Life cycle rules to apply to this registry.Default: No life cycle rules
-
getRemovalPolicy
Determine what happens to the repository when the resource/stack is deleted.Default: RemovalPolicy.Retain
-
getRepositoryName
Name for this repository.The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes.
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
Default: Automatically generated name.
-
builder
- Returns:
- a
RepositoryProps.BuilderofRepositoryProps
-
emptyOnDeleteinstead.