1. Packages
  2. AWS
  3. API Docs
  4. workspacesweb
  5. SessionLoggerAssociation
AWS v7.7.0 published on Friday, Sep 5, 2025 by Pulumi

aws.workspacesweb.SessionLoggerAssociation

Explore with Pulumi AI

aws logo
AWS v7.7.0 published on Friday, Sep 5, 2025 by Pulumi

    Resource for managing an AWS WorkSpaces Web Session Logger Association.

    Example Usage

    Create SessionLoggerAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SessionLoggerAssociation(name: string, args: SessionLoggerAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def SessionLoggerAssociation(resource_name: str,
                                 args: SessionLoggerAssociationArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SessionLoggerAssociation(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 portal_arn: Optional[str] = None,
                                 session_logger_arn: Optional[str] = None,
                                 region: Optional[str] = None)
    func NewSessionLoggerAssociation(ctx *Context, name string, args SessionLoggerAssociationArgs, opts ...ResourceOption) (*SessionLoggerAssociation, error)
    public SessionLoggerAssociation(string name, SessionLoggerAssociationArgs args, CustomResourceOptions? opts = null)
    public SessionLoggerAssociation(String name, SessionLoggerAssociationArgs args)
    public SessionLoggerAssociation(String name, SessionLoggerAssociationArgs args, CustomResourceOptions options)
    
    type: aws:workspacesweb:SessionLoggerAssociation
    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 SessionLoggerAssociationArgs
    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 SessionLoggerAssociationArgs
    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 SessionLoggerAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SessionLoggerAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SessionLoggerAssociationArgs
    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 sessionLoggerAssociationResource = new Aws.WorkSpacesWeb.SessionLoggerAssociation("sessionLoggerAssociationResource", new()
    {
        PortalArn = "string",
        SessionLoggerArn = "string",
        Region = "string",
    });
    
    example, err := workspacesweb.NewSessionLoggerAssociation(ctx, "sessionLoggerAssociationResource", &workspacesweb.SessionLoggerAssociationArgs{
    	PortalArn:        pulumi.String("string"),
    	SessionLoggerArn: pulumi.String("string"),
    	Region:           pulumi.String("string"),
    })
    
    var sessionLoggerAssociationResource = new SessionLoggerAssociation("sessionLoggerAssociationResource", SessionLoggerAssociationArgs.builder()
        .portalArn("string")
        .sessionLoggerArn("string")
        .region("string")
        .build());
    
    session_logger_association_resource = aws.workspacesweb.SessionLoggerAssociation("sessionLoggerAssociationResource",
        portal_arn="string",
        session_logger_arn="string",
        region="string")
    
    const sessionLoggerAssociationResource = new aws.workspacesweb.SessionLoggerAssociation("sessionLoggerAssociationResource", {
        portalArn: "string",
        sessionLoggerArn: "string",
        region: "string",
    });
    
    type: aws:workspacesweb:SessionLoggerAssociation
    properties:
        portalArn: string
        region: string
        sessionLoggerArn: string
    

    SessionLoggerAssociation 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 SessionLoggerAssociation resource accepts the following input properties:

    PortalArn string
    ARN of the web portal.
    SessionLoggerArn string

    ARN of the session logger.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    PortalArn string
    ARN of the web portal.
    SessionLoggerArn string

    ARN of the session logger.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    portalArn String
    ARN of the web portal.
    sessionLoggerArn String

    ARN of the session logger.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    portalArn string
    ARN of the web portal.
    sessionLoggerArn string

    ARN of the session logger.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    portal_arn str
    ARN of the web portal.
    session_logger_arn str

    ARN of the session logger.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    portalArn String
    ARN of the web portal.
    sessionLoggerArn String

    ARN of the session logger.

    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 SessionLoggerAssociation 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 SessionLoggerAssociation Resource

    Get an existing SessionLoggerAssociation 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?: SessionLoggerAssociationState, opts?: CustomResourceOptions): SessionLoggerAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            portal_arn: Optional[str] = None,
            region: Optional[str] = None,
            session_logger_arn: Optional[str] = None) -> SessionLoggerAssociation
    func GetSessionLoggerAssociation(ctx *Context, name string, id IDInput, state *SessionLoggerAssociationState, opts ...ResourceOption) (*SessionLoggerAssociation, error)
    public static SessionLoggerAssociation Get(string name, Input<string> id, SessionLoggerAssociationState? state, CustomResourceOptions? opts = null)
    public static SessionLoggerAssociation get(String name, Output<String> id, SessionLoggerAssociationState state, CustomResourceOptions options)
    resources:  _:    type: aws:workspacesweb:SessionLoggerAssociation    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.
    The following state arguments are supported:
    PortalArn string
    ARN of the web portal.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SessionLoggerArn string

    ARN of the session logger.

    The following arguments are optional:

    PortalArn string
    ARN of the web portal.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SessionLoggerArn string

    ARN of the session logger.

    The following arguments are optional:

    portalArn String
    ARN of the web portal.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sessionLoggerArn String

    ARN of the session logger.

    The following arguments are optional:

    portalArn string
    ARN of the web portal.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sessionLoggerArn string

    ARN of the session logger.

    The following arguments are optional:

    portal_arn str
    ARN of the web portal.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    session_logger_arn str

    ARN of the session logger.

    The following arguments are optional:

    portalArn String
    ARN of the web portal.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sessionLoggerArn String

    ARN of the session logger.

    The following arguments are optional:

    Import

    Using pulumi import, import WorkSpaces Web Session Logger Association using the session_logger_arn,portal_arn. For example:

    $ pulumi import aws:workspacesweb/sessionLoggerAssociation:SessionLoggerAssociation example arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/session_logger-id-12345678,arn:aws:workspaces-web:us-west-2:123456789012:portal/portal-id-12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    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
    AWS v7.7.0 published on Friday, Sep 5, 2025 by Pulumi
      AI Agentic Workflows: Register now