Selection constructor
Selection(
- String name, {
- SelectionArgs? args,
- CustomResourceOptions? options,
Creates a new Selection.
name The Pulumi resource name.
args Arguments used to configure this Selection. The set of arguments for Selection.
options Resource options controlling this resource's behavior.
Implementation
Selection(
String name, {
SelectionArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:backup/selection:Selection',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
conditions = registerOutput<List<SelectionCondition>>('conditions', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<SelectionCondition>(guardedValue, (value) => SelectionCondition.fromMap((value as Map).cast<String, dynamic>())); });
iamRoleArn = registerOutput<String>('iamRoleArn');
this.name = registerOutput<String>('name');
notResources = registerOutput<List<String>>('notResources', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
planId = registerOutput<String>('planId');
region = registerOutput<String>('region');
resources = registerOutput<List<String>?>('resources', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
selectionTags = registerOutput<List<SelectionSelectionTag>?>('selectionTags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<SelectionSelectionTag>(guardedValue, (value) => SelectionSelectionTag.fromMap((value as Map).cast<String, dynamic>())); });
}