amazonka-resource-explorer-v2-2.0: Amazon Resource Explorer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ResourceExplorer2.CreateView

Description

Creates a view that users can query by using the Search operation. Results from queries that you make using this view include only resources that match the view's Filters. For more information about Amazon Web Services Resource Explorer views, see Managing views in the Amazon Web Services Resource Explorer User Guide.

Only the principals with an IAM identity-based policy that grants Allow to the Search action on a Resource with the Amazon resource name (ARN) of this view can Search using views you create with this operation.

Synopsis

Creating a Request

data CreateView Source #

See: newCreateView smart constructor.

Constructors

CreateView' 

Fields

  • clientToken :: Maybe Text

    This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your views.

  • filters :: Maybe (Sensitive SearchFilter)

    An array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a Search operation, the filter string is combined with the search's QueryString parameter using a logical AND operator.

    For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide.

    This query string in the context of this operation supports only filter prefixes with optional operators. It doesn't support free-form text. For example, the string region:us* service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod.

  • includedProperties :: Maybe [IncludedProperty]

    Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include.

    The default is an empty list, with no optional fields included in the results.

  • tags :: Maybe (HashMap Text Text)

    Tag key and value pairs that are attached to the view.

  • viewName :: Text

    The name of the new view. This name appears in the list of views in Resource Explorer.

    The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its Amazon Web Services Region.

Instances

Instances details
ToJSON CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

ToHeaders CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

Methods

toHeaders :: CreateView -> [Header] #

ToPath CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

ToQuery CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

AWSRequest CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

Associated Types

type AWSResponse CreateView #

Generic CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

Associated Types

type Rep CreateView :: Type -> Type #

Show CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

NFData CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

Methods

rnf :: CreateView -> () #

Eq CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

Hashable CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

type AWSResponse CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

type Rep CreateView Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

type Rep CreateView = D1 ('MetaData "CreateView" "Amazonka.ResourceExplorer2.CreateView" "amazonka-resource-explorer-v2-2.0-DYDynTzMYCcKX3QLWjH6Yt" 'False) (C1 ('MetaCons "CreateView'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive SearchFilter)))) :*: (S1 ('MetaSel ('Just "includedProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [IncludedProperty])) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "viewName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateView Source #

Create a value of CreateView with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clientToken:CreateView', createView_clientToken - This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your views.

CreateView, createView_filters - An array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a Search operation, the filter string is combined with the search's QueryString parameter using a logical AND operator.

For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide.

This query string in the context of this operation supports only filter prefixes with optional operators. It doesn't support free-form text. For example, the string region:us* service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod.

CreateView, createView_includedProperties - Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include.

The default is an empty list, with no optional fields included in the results.

$sel:tags:CreateView', createView_tags - Tag key and value pairs that are attached to the view.

$sel:viewName:CreateView', createView_viewName - The name of the new view. This name appears in the list of views in Resource Explorer.

The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its Amazon Web Services Region.

Request Lenses

createView_clientToken :: Lens' CreateView (Maybe Text) Source #

This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your views.

createView_filters :: Lens' CreateView (Maybe SearchFilter) Source #

An array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a Search operation, the filter string is combined with the search's QueryString parameter using a logical AND operator.

For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide.

This query string in the context of this operation supports only filter prefixes with optional operators. It doesn't support free-form text. For example, the string region:us* service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod.

createView_includedProperties :: Lens' CreateView (Maybe [IncludedProperty]) Source #

Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include.

The default is an empty list, with no optional fields included in the results.

createView_tags :: Lens' CreateView (Maybe (HashMap Text Text)) Source #

Tag key and value pairs that are attached to the view.

createView_viewName :: Lens' CreateView Text Source #

The name of the new view. This name appears in the list of views in Resource Explorer.

The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its Amazon Web Services Region.

Destructuring the Response

data CreateViewResponse Source #

See: newCreateViewResponse smart constructor.

Constructors

CreateViewResponse' 

Fields

Instances

Instances details
Generic CreateViewResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

Associated Types

type Rep CreateViewResponse :: Type -> Type #

Show CreateViewResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

NFData CreateViewResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

Methods

rnf :: CreateViewResponse -> () #

Eq CreateViewResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

type Rep CreateViewResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.CreateView

type Rep CreateViewResponse = D1 ('MetaData "CreateViewResponse" "Amazonka.ResourceExplorer2.CreateView" "amazonka-resource-explorer-v2-2.0-DYDynTzMYCcKX3QLWjH6Yt" 'False) (C1 ('MetaCons "CreateViewResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "view") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe View)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateViewResponse Source #

Create a value of CreateViewResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:view:CreateViewResponse', createViewResponse_view - A structure that contains the details about the new view.

$sel:httpStatus:CreateViewResponse', createViewResponse_httpStatus - The response's http status code.

Response Lenses

createViewResponse_view :: Lens' CreateViewResponse (Maybe View) Source #

A structure that contains the details about the new view.