DataProtectionSettingsAssociation class
Resource for managing an AWS WorkSpaces Web Data Protection Settings Association.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.workspacesweb.Portal("example", {displayName: "example"});
const exampleDataProtectionSettings = new aws.workspacesweb.DataProtectionSettings("example", {displayName: "example"});
const exampleDataProtectionSettingsAssociation = new aws.workspacesweb.DataProtectionSettingsAssociation("example", {
dataProtectionSettingsArn: exampleDataProtectionSettings.dataProtectionSettingsArn,
portalArn: example.portalArn,
});
import pulumi
import pulumi_aws as aws
example = aws.workspacesweb.Portal("example", display_name="example")
example_data_protection_settings = aws.workspacesweb.DataProtectionSettings("example", display_name="example")
example_data_protection_settings_association = aws.workspacesweb.DataProtectionSettingsAssociation("example",
data_protection_settings_arn=example_data_protection_settings.data_protection_settings_arn,
portal_arn=example.portal_arn)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.WorkSpacesWeb.Portal("example", new()
{
DisplayName = "example",
});
var exampleDataProtectionSettings = new Aws.WorkSpacesWeb.DataProtectionSettings("example", new()
{
DisplayName = "example",
});
var exampleDataProtectionSettingsAssociation = new Aws.WorkSpacesWeb.DataProtectionSettingsAssociation("example", new()
{
DataProtectionSettingsArn = exampleDataProtectionSettings.DataProtectionSettingsArn,
PortalArn = example.PortalArn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/workspacesweb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := workspacesweb.NewPortal(ctx, "example", &workspacesweb.PortalArgs{
DisplayName: pulumi.String("example"),
})
if err != nil {
return err
}
exampleDataProtectionSettings, err := workspacesweb.NewDataProtectionSettings(ctx, "example", &workspacesweb.DataProtectionSettingsArgs{
DisplayName: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = workspacesweb.NewDataProtectionSettingsAssociation(ctx, "example", &workspacesweb.DataProtectionSettingsAssociationArgs{
DataProtectionSettingsArn: exampleDataProtectionSettings.DataProtectionSettingsArn,
PortalArn: example.PortalArn,
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_workspacesweb_portal" "example" {
display_name = "example"
}
resource "aws_workspacesweb_dataprotectionsettings" "example" {
display_name = "example"
}
resource "aws_workspacesweb_dataprotectionsettingsassociation" "example" {
data_protection_settings_arn = aws_workspacesweb_dataprotectionsettings.example.data_protection_settings_arn
portal_arn = aws_workspacesweb_portal.example.portal_arn
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.workspacesweb.Portal;
import com.pulumi.aws.workspacesweb.PortalArgs;
import com.pulumi.aws.workspacesweb.DataProtectionSettings;
import com.pulumi.aws.workspacesweb.DataProtectionSettingsArgs;
import com.pulumi.aws.workspacesweb.DataProtectionSettingsAssociation;
import com.pulumi.aws.workspacesweb.DataProtectionSettingsAssociationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Portal("example", PortalArgs.builder()
.displayName("example")
.build());
var exampleDataProtectionSettings = new DataProtectionSettings("exampleDataProtectionSettings", DataProtectionSettingsArgs.builder()
.displayName("example")
.build());
var exampleDataProtectionSettingsAssociation = new DataProtectionSettingsAssociation("exampleDataProtectionSettingsAssociation", DataProtectionSettingsAssociationArgs.builder()
.dataProtectionSettingsArn(exampleDataProtectionSettings.dataProtectionSettingsArn())
.portalArn(example.portalArn())
.build());
}
}
resources:
example:
type: aws:workspacesweb:Portal
properties:
displayName: example
exampleDataProtectionSettings:
type: aws:workspacesweb:DataProtectionSettings
name: example
properties:
displayName: example
exampleDataProtectionSettingsAssociation:
type: aws:workspacesweb:DataProtectionSettingsAssociation
name: example
properties:
dataProtectionSettingsArn: ${exampleDataProtectionSettings.dataProtectionSettingsArn}
portalArn: ${example.portalArn}
Constructors
- DataProtectionSettingsAssociation(String name, {DataProtectionSettingsAssociationArgs? args, CustomResourceOptions? options})
-
Creates a new DataProtectionSettingsAssociation.
nameThe Pulumi resource name.argsArguments used to configure this DataProtectionSettingsAssociation. The set of arguments for DataProtectionSettingsAssociation.optionsResource options controlling this resource's behavior. - DataProtectionSettingsAssociation.reference(String urn)
- Creates a typed reference to an existing DataProtectionSettingsAssociation resource.
Properties
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
dataProtectionSettingsArn
↔ Output<
String> -
ARN of the data protection settings to associate with the portal. Forces replacement if changed.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
portalArn
↔ Output<
String> -
ARN of the portal to associate with the data protection settings. Forces replacement if changed.
latefinal
-
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {DataProtectionSettingsAssociationState? state, CustomResourceOptions? options}) → DataProtectionSettingsAssociation -
Gets an existing DataProtectionSettingsAssociation resource's state with the given
nameandid.