ResourceType constructor

ResourceType(
  1. String name, {
  2. ResourceArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new ResourceType. name The Pulumi resource name. args Arguments used to configure this ResourceType. The set of arguments for Resource. options Resource options controlling this resource's behavior.

Implementation

ResourceType(
  String name, {
  ResourceArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:cloudcontrol/resource:Resource',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
        additionalSecretOutputs: const ['schema'],
      ) {
  desiredState = registerOutput<String>('desiredState');
  properties = registerOutput<String>('properties');
  region = registerOutput<String>('region');
  roleArn = registerOutput<String?>('roleArn');
  schema = registerOutput<String>('schema', isSecret: true);
  typeName = registerOutput<String>('typeName');
  typeVersionId = registerOutput<String?>('typeVersionId');
}