aws.workspacesweb.DataProtectionSettingsAssociation
Explore with Pulumi AI
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)
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
})
}
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 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.List;
import java.util.ArrayList;
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}
Create DataProtectionSettingsAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataProtectionSettingsAssociation(name: string, args: DataProtectionSettingsAssociationArgs, opts?: CustomResourceOptions);
@overload
def DataProtectionSettingsAssociation(resource_name: str,
args: DataProtectionSettingsAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataProtectionSettingsAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_protection_settings_arn: Optional[str] = None,
portal_arn: Optional[str] = None,
region: Optional[str] = None)
func NewDataProtectionSettingsAssociation(ctx *Context, name string, args DataProtectionSettingsAssociationArgs, opts ...ResourceOption) (*DataProtectionSettingsAssociation, error)
public DataProtectionSettingsAssociation(string name, DataProtectionSettingsAssociationArgs args, CustomResourceOptions? opts = null)
public DataProtectionSettingsAssociation(String name, DataProtectionSettingsAssociationArgs args)
public DataProtectionSettingsAssociation(String name, DataProtectionSettingsAssociationArgs args, CustomResourceOptions options)
type: aws:workspacesweb:DataProtectionSettingsAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DataProtectionSettingsAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DataProtectionSettingsAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataProtectionSettingsAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataProtectionSettingsAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataProtectionSettingsAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dataProtectionSettingsAssociationResource = new Aws.WorkSpacesWeb.DataProtectionSettingsAssociation("dataProtectionSettingsAssociationResource", new()
{
DataProtectionSettingsArn = "string",
PortalArn = "string",
Region = "string",
});
example, err := workspacesweb.NewDataProtectionSettingsAssociation(ctx, "dataProtectionSettingsAssociationResource", &workspacesweb.DataProtectionSettingsAssociationArgs{
DataProtectionSettingsArn: pulumi.String("string"),
PortalArn: pulumi.String("string"),
Region: pulumi.String("string"),
})
var dataProtectionSettingsAssociationResource = new DataProtectionSettingsAssociation("dataProtectionSettingsAssociationResource", DataProtectionSettingsAssociationArgs.builder()
.dataProtectionSettingsArn("string")
.portalArn("string")
.region("string")
.build());
data_protection_settings_association_resource = aws.workspacesweb.DataProtectionSettingsAssociation("dataProtectionSettingsAssociationResource",
data_protection_settings_arn="string",
portal_arn="string",
region="string")
const dataProtectionSettingsAssociationResource = new aws.workspacesweb.DataProtectionSettingsAssociation("dataProtectionSettingsAssociationResource", {
dataProtectionSettingsArn: "string",
portalArn: "string",
region: "string",
});
type: aws:workspacesweb:DataProtectionSettingsAssociation
properties:
dataProtectionSettingsArn: string
portalArn: string
region: string
DataProtectionSettingsAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataProtectionSettingsAssociation resource accepts the following input properties:
- Data
Protection stringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- Portal
Arn string ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Data
Protection stringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- Portal
Arn string ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- data
Protection StringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- portal
Arn String ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- data
Protection stringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- portal
Arn string ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- data_
protection_ strsettings_ arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- portal_
arn str ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- data
Protection StringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- portal
Arn String ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataProtectionSettingsAssociation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DataProtectionSettingsAssociation Resource
Get an existing DataProtectionSettingsAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DataProtectionSettingsAssociationState, opts?: CustomResourceOptions): DataProtectionSettingsAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_protection_settings_arn: Optional[str] = None,
portal_arn: Optional[str] = None,
region: Optional[str] = None) -> DataProtectionSettingsAssociation
func GetDataProtectionSettingsAssociation(ctx *Context, name string, id IDInput, state *DataProtectionSettingsAssociationState, opts ...ResourceOption) (*DataProtectionSettingsAssociation, error)
public static DataProtectionSettingsAssociation Get(string name, Input<string> id, DataProtectionSettingsAssociationState? state, CustomResourceOptions? opts = null)
public static DataProtectionSettingsAssociation get(String name, Output<String> id, DataProtectionSettingsAssociationState state, CustomResourceOptions options)
resources: _: type: aws:workspacesweb:DataProtectionSettingsAssociation get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Data
Protection stringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- Portal
Arn string ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Data
Protection stringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- Portal
Arn string ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- data
Protection StringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- portal
Arn String ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- data
Protection stringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- portal
Arn string ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- data_
protection_ strsettings_ arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- portal_
arn str ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- data
Protection StringSettings Arn - ARN of the data protection settings to associate with the portal. Forces replacement if changed.
- portal
Arn String ARN of the portal to associate with the data protection settings. Forces replacement if changed.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.