ServiceAccountCoreV1 constructor
ServiceAccountCoreV1(
- String name, {
- ServiceAccountArgs? args,
- CustomResourceOptions? options,
Creates a new ServiceAccountCoreV1.
name The Pulumi resource name.
args Arguments used to configure this ServiceAccountCoreV1. The set of arguments for ServiceAccount.
options Resource options controlling this resource's behavior.
Implementation
ServiceAccountCoreV1(
String name, {
ServiceAccountArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'kubernetes:core/v1:ServiceAccount',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
apiVersion = registerOutput<String>('apiVersion');
automountServiceAccountToken = registerOutput<bool>('automountServiceAccountToken');
imagePullSecrets = registerOutput<List<Map<String, dynamic>>>('imagePullSecrets');
kind = registerOutput<String>('kind');
metadata = registerOutput<ObjectMeta>('metadata', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ObjectMeta.fromMap((guardedValue as Map).cast<String, dynamic>()); });
secrets = registerOutput<List<Map<String, dynamic>>>('secrets');
}