Secret constructor
Secret(
- String name, {
- SecretArgs? args,
- CustomResourceOptions? options,
Creates a new Secret.
name The Pulumi resource name.
args Arguments used to configure this Secret. The set of arguments for Secret.
options Resource options controlling this resource's behavior.
Implementation
Secret(
String name, {
SecretArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'docker:index/secret:Secret',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '5.2.0').merge(options),
additionalSecretOutputs: const ['data'],
) {
data = registerOutput<String>('data', isSecret: true);
labels = registerOutput<List<SecretLabel>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<SecretLabel>(guardedValue, (value) => SecretLabel.fromMap((value as Map).cast<String, dynamic>())); });
this.name = registerOutput<String>('name');
}