Interface CustomResourceOptions

CustomResourceOptions is a bag of optional settings that control a custom resource's behavior.

interface CustomResourceOptions {
    additionalSecretOutputs?: string[];
    aliases?: Input<string | Alias>[];
    customTimeouts?: CustomTimeouts;
    deleteBeforeReplace?: boolean;
    deletedWith?: Resource;
    dependsOn?: Input<Resource> | Input<Input<Resource>[]>;
    id?: Input<string>;
    ignoreChanges?: string[];
    import?: string;
    parent?: Resource;
    pluginDownloadURL?: string;
    protect?: boolean;
    provider?: ProviderResource;
    replaceOnChanges?: string[];
    retainOnDelete?: boolean;
    transformations?: ResourceTransformation[];
    transforms?: ResourceTransform[];
    urn?: string;
    version?: string;
}

Hierarchy (view full)

Properties

additionalSecretOutputs?: string[]

The names of outputs for this resource that should be treated as secrets. This augments the list that the resource provider and pulumi engine already determine based on inputs to your resource. It can be used to mark certain ouputs as a secrets on a per resource basis.

aliases?: Input<string | Alias>[]

An optional list of aliases to treat this resource as matching.

customTimeouts?: CustomTimeouts

An optional customTimeouts configuration block.

deleteBeforeReplace?: boolean

When set to true, deleteBeforeReplace indicates that this resource should be deleted before its replacement is created when replacement is necessary.

deletedWith?: Resource

If set, the providers Delete method will not be called for this resource if specified is being deleted as well.

dependsOn?: Input<Resource> | Input<Input<Resource>[]>

An optional additional explicit dependencies on other resources.

id?: Input<string>

An optional existing ID to load, rather than create.

ignoreChanges?: string[]

Ignore changes to any of the specified properties.

import?: string

When provided with a resource ID, import indicates that this resource's provider should import its state from the cloud resource with the given ID. The inputs to the resource's constructor must align with the resource's current state. Once a resource has been imported, the import property must be removed from the resource's options.

parent?: Resource

An optional parent resource to which this resource belongs.

pluginDownloadURL?: string

An option to specify the URL from which to download this resources associated plugin. This version overrides the URL information inferred from the current package and should rarely be used.

protect?: boolean

When set to true, protect ensures this resource cannot be deleted.

provider?: ProviderResource

An optional provider to use for this resource's CRUD operations. If no provider is supplied, the default provider for the resource's package will be used. The default provider is pulled from the parent's provider bag (see also ComponentResourceOptions.providers).

If this is a [ComponentResourceOptions] do not provide both [provider] and [providers]

replaceOnChanges?: string[]

Changes to any of these property paths will force a replacement. If this list includes "*", changes to any properties will force a replacement. Initialization errors from previous deployments will require replacement instead of update only if "*" is passed.

retainOnDelete?: boolean

If set to True, the providers Delete method will not be called for this resource.

transformations?: ResourceTransformation[]

Optional list of transformations to apply to this resource during construction. The transformations are applied in order, and are applied prior to transformation applied to parents walking from the resource up to the stack.

transforms?: ResourceTransform[]

Optional list of transforms to apply to this resource during construction. The transforms are applied in order, and are applied prior to transforms applied to parents walking from the resource up to the stack.

This property is experimental.

urn?: string

The URN of a previously-registered resource of this type to read from the engine.

version?: string

An optional version, corresponding to the version of the provider plugin that should be used when operating on this resource. This version overrides the version information inferred from the current package and should rarely be used.

Generated using TypeDoc