CodeRepository constructor
CodeRepository(
- String name, {
- CodeRepositoryArgs? args,
- CustomResourceOptions? options,
Creates a new CodeRepository.
name The Pulumi resource name.
args Arguments used to configure this CodeRepository. The set of arguments for CodeRepository.
options Resource options controlling this resource's behavior.
Implementation
CodeRepository(
String name, {
CodeRepositoryArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:sagemaker/codeRepository:CodeRepository',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
arn = registerOutput<String>('arn');
codeRepositoryName = registerOutput<String>('codeRepositoryName');
gitConfig = registerOutput<CodeRepositoryGitConfig>('gitConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CodeRepositoryGitConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
region = registerOutput<String>('region');
tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}