Show / Hide Table of Contents

Class ResourceOptions

Inheritance
System.Object
ResourceOptions
Implements
IResourceOptions
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ResourceOptions : Object, IResourceOptions
Syntax (vb)
Public Class ResourceOptions
    Inherits Object
    Implements IResourceOptions
Remarks

ExampleMetadata: infused

Examples
Resource resource;


var subtree = resource.AddResource("subtree", new ResourceOptions {
    DefaultCorsPreflightOptions = new CorsOptions {
        AllowOrigins = new [] { "https://amazon.com" }
    }
});

Synopsis

Constructors

ResourceOptions()

Properties

DefaultCorsPreflightOptions

Adds a CORS preflight OPTIONS method to this resource and all child resources.

DefaultIntegration

An integration to use as a default for all methods created within this API unless an integration is specified.

DefaultMethodOptions

Method options to use as a default for all methods created within this API unless custom options are specified.

Constructors

ResourceOptions()

public ResourceOptions()

Properties

DefaultCorsPreflightOptions

Adds a CORS preflight OPTIONS method to this resource and all child resources.

public ICorsOptions DefaultCorsPreflightOptions { get; set; }
Property Value

ICorsOptions

Remarks

You can add CORS at the resource-level using addCorsPreflight.

Default: - CORS is disabled

DefaultIntegration

An integration to use as a default for all methods created within this API unless an integration is specified.

public Integration DefaultIntegration { get; set; }
Property Value

Integration

Remarks

Default: - Inherited from parent.

DefaultMethodOptions

Method options to use as a default for all methods created within this API unless custom options are specified.

public IMethodOptions DefaultMethodOptions { get; set; }
Property Value

IMethodOptions

Remarks

Default: - Inherited from parent.

Implements

IResourceOptions
Back to top Generated by DocFX