DeploymentResource constructor
DeploymentResource(
- String name, {
- DeploymentAppsV1beta1Args? args,
- CustomResourceOptions? options,
Creates a new DeploymentResource.
name The Pulumi resource name.
args Arguments used to configure this DeploymentResource. The set of arguments for Deployment.
options Resource options controlling this resource's behavior.
Implementation
DeploymentResource(
String name, {
DeploymentAppsV1beta1Args? args,
pulumi.CustomResourceOptions? options,
}) : super(
'kubernetes:apps/v1beta1:Deployment',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
apiVersion = registerOutput<String>('apiVersion');
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>()); });
spec = registerOutput<DeploymentSpecAppsV1beta1>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DeploymentSpecAppsV1beta1.fromMap((guardedValue as Map).cast<String, dynamic>()); });
status = registerOutput<DeploymentStatusAppsV1beta1?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DeploymentStatusAppsV1beta1.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}