1. Packages
  2. AWS Classic
  3. API Docs
  4. auditmanager
  5. FrameworkShare

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.3.0 published on Thursday, Sep 28, 2023 by Pulumi

aws.auditmanager.FrameworkShare

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.3.0 published on Thursday, Sep 28, 2023 by Pulumi

    Resource for managing an AWS Audit Manager Framework Share.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Auditmanager.FrameworkShare("example", new()
        {
            DestinationAccount = "012345678901",
            DestinationRegion = "us-east-1",
            FrameworkId = aws_auditmanager_framework.Example.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/auditmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := auditmanager.NewFrameworkShare(ctx, "example", &auditmanager.FrameworkShareArgs{
    			DestinationAccount: pulumi.String("012345678901"),
    			DestinationRegion:  pulumi.String("us-east-1"),
    			FrameworkId:        pulumi.Any(aws_auditmanager_framework.Example.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.auditmanager.FrameworkShare;
    import com.pulumi.aws.auditmanager.FrameworkShareArgs;
    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 FrameworkShare("example", FrameworkShareArgs.builder()        
                .destinationAccount("012345678901")
                .destinationRegion("us-east-1")
                .frameworkId(aws_auditmanager_framework.example().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.auditmanager.FrameworkShare("example",
        destination_account="012345678901",
        destination_region="us-east-1",
        framework_id=aws_auditmanager_framework["example"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.auditmanager.FrameworkShare("example", {
        destinationAccount: "012345678901",
        destinationRegion: "us-east-1",
        frameworkId: aws_auditmanager_framework.example.id,
    });
    
    resources:
      example:
        type: aws:auditmanager:FrameworkShare
        properties:
          destinationAccount: '012345678901'
          destinationRegion: us-east-1
          frameworkId: ${aws_auditmanager_framework.example.id}
    

    Create FrameworkShare Resource

    new FrameworkShare(name: string, args: FrameworkShareArgs, opts?: CustomResourceOptions);
    @overload
    def FrameworkShare(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       comment: Optional[str] = None,
                       destination_account: Optional[str] = None,
                       destination_region: Optional[str] = None,
                       framework_id: Optional[str] = None)
    @overload
    def FrameworkShare(resource_name: str,
                       args: FrameworkShareArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewFrameworkShare(ctx *Context, name string, args FrameworkShareArgs, opts ...ResourceOption) (*FrameworkShare, error)
    public FrameworkShare(string name, FrameworkShareArgs args, CustomResourceOptions? opts = null)
    public FrameworkShare(String name, FrameworkShareArgs args)
    public FrameworkShare(String name, FrameworkShareArgs args, CustomResourceOptions options)
    
    type: aws:auditmanager:FrameworkShare
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args FrameworkShareArgs
    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 FrameworkShareArgs
    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 FrameworkShareArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FrameworkShareArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FrameworkShareArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    FrameworkShare Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The FrameworkShare resource accepts the following input properties:

    DestinationAccount string

    Amazon Web Services account of the recipient.

    DestinationRegion string

    Amazon Web Services region of the recipient.

    FrameworkId string

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    Comment string

    Comment from the sender about the share request.

    DestinationAccount string

    Amazon Web Services account of the recipient.

    DestinationRegion string

    Amazon Web Services region of the recipient.

    FrameworkId string

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    Comment string

    Comment from the sender about the share request.

    destinationAccount String

    Amazon Web Services account of the recipient.

    destinationRegion String

    Amazon Web Services region of the recipient.

    frameworkId String

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    comment String

    Comment from the sender about the share request.

    destinationAccount string

    Amazon Web Services account of the recipient.

    destinationRegion string

    Amazon Web Services region of the recipient.

    frameworkId string

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    comment string

    Comment from the sender about the share request.

    destination_account str

    Amazon Web Services account of the recipient.

    destination_region str

    Amazon Web Services region of the recipient.

    framework_id str

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    comment str

    Comment from the sender about the share request.

    destinationAccount String

    Amazon Web Services account of the recipient.

    destinationRegion String

    Amazon Web Services region of the recipient.

    frameworkId String

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    comment String

    Comment from the sender about the share request.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FrameworkShare resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    Status of the share request.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    Status of the share request.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    Status of the share request.

    id string

    The provider-assigned unique ID for this managed resource.

    status string

    Status of the share request.

    id str

    The provider-assigned unique ID for this managed resource.

    status str

    Status of the share request.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    Status of the share request.

    Look up Existing FrameworkShare Resource

    Get an existing FrameworkShare 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?: FrameworkShareState, opts?: CustomResourceOptions): FrameworkShare
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            destination_account: Optional[str] = None,
            destination_region: Optional[str] = None,
            framework_id: Optional[str] = None,
            status: Optional[str] = None) -> FrameworkShare
    func GetFrameworkShare(ctx *Context, name string, id IDInput, state *FrameworkShareState, opts ...ResourceOption) (*FrameworkShare, error)
    public static FrameworkShare Get(string name, Input<string> id, FrameworkShareState? state, CustomResourceOptions? opts = null)
    public static FrameworkShare get(String name, Output<String> id, FrameworkShareState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Comment string

    Comment from the sender about the share request.

    DestinationAccount string

    Amazon Web Services account of the recipient.

    DestinationRegion string

    Amazon Web Services region of the recipient.

    FrameworkId string

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    Status string

    Status of the share request.

    Comment string

    Comment from the sender about the share request.

    DestinationAccount string

    Amazon Web Services account of the recipient.

    DestinationRegion string

    Amazon Web Services region of the recipient.

    FrameworkId string

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    Status string

    Status of the share request.

    comment String

    Comment from the sender about the share request.

    destinationAccount String

    Amazon Web Services account of the recipient.

    destinationRegion String

    Amazon Web Services region of the recipient.

    frameworkId String

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    status String

    Status of the share request.

    comment string

    Comment from the sender about the share request.

    destinationAccount string

    Amazon Web Services account of the recipient.

    destinationRegion string

    Amazon Web Services region of the recipient.

    frameworkId string

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    status string

    Status of the share request.

    comment str

    Comment from the sender about the share request.

    destination_account str

    Amazon Web Services account of the recipient.

    destination_region str

    Amazon Web Services region of the recipient.

    framework_id str

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    status str

    Status of the share request.

    comment String

    Comment from the sender about the share request.

    destinationAccount String

    Amazon Web Services account of the recipient.

    destinationRegion String

    Amazon Web Services region of the recipient.

    frameworkId String

    Unique identifier for the shared custom framework.

    The following arguments are optional:

    status String

    Status of the share request.

    Import

    Using pulumi import, import Audit Manager Framework Share using the id. For example:

     $ pulumi import aws:auditmanager/frameworkShare:FrameworkShare example abcdef-123456
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.3.0 published on Thursday, Sep 28, 2023 by Pulumi